package com.zjw.nanyinge.feign;

import com.zjw.nanyinge.feign.config.BaiduVoiceFeignConfig;
import com.zjw.nanyinge.vo.req.BaiduVoiceParamsVO;
import com.zjw.nanyinge.vo.resp.VoiceVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "baidu-voice-api-service", url = "${baidu.api.voice.url}", configuration = BaiduVoiceFeignConfig.class)
public interface BaiduVoiceApi {

    @PostMapping(value = "/text2audio", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    VoiceVO text2audio(BaiduVoiceParamsVO baiduVoiceParamsVO);

}
